package com.example.mapper;

import com.example.entity.Checkpoint;
import com.example.entity.Chengji;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ChengjiMapper  {

    /*
     * 新增
     * */
    int insert(Chengji chengji);

    /*
     * 删除
     * */
    void deleteById(Integer id);

    /*
     * 修改
     * */
    int updateById(Chengji chengji);

    /*
     * 根据ID查询
     * */
    Chengji selectById(Integer id);

    /*
     * 查询所有
     * */
    List<Chengji> selectAll(Chengji chengji);

    @Select("select count(*) from chengji where pingji = #{pingji}")
    int selectCountById(String pingji);
}
